/* 商务流量 */
import http from '@/utils/http'
enum Api {
    /* 上报信息管理-API */
    reportingInfoPage = '/api/reporting/info/page',
    reportingInfoSaveOrUpdate = '/api/reporting/info/saveOrUpdate',
    reportingInfoManualElevate = '/api/reporting/info/manualElevate',
    reportingInfoCreate = '/api/reporting/info/create',
    oldSystemDataMigrationChannel='/api/sync/oldSystemData/migrationChannel'
}


/* 数据上报任务 分页 */
export const reportingInfoPagePost = async (params: any) => {
    return http.post(Api.reportingInfoPage, params)
}
/* 数据上报任务 新增*/
export const reportingInfoSaveOrUpdatePost = async (params: any) => {
    return http.post(Api.reportingInfoSaveOrUpdate, params)
}
/* 数据上报任务 上报 */
export const reportingInfoManualElevatePost = async (params: any) => {
    return http.post(Api.reportingInfoManualElevate, params)
}
/* 数据上报任务 新增或则更新上报记录 */
export const reportingInfoCreatePost = async () => {
    return http.get(Api.reportingInfoCreate)
}

/* 刷新渠道 */
export const oldSystemDataMigrationChannelPost = async (params: any) => {
    return http.post(Api.oldSystemDataMigrationChannel, params)
}
